﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hive.Core;

namespace Hive.NewBot
{
    public class Order
    {
        public Location Destination { get; set; }
        public Performer Performer { get; set; }

        public override int GetHashCode()
        {
            unchecked
            {
                int result = 397 ^ this.Destination.GetHashCode();
                return result;
            }
        }

        public override bool Equals(object obj)
        {
            Order other = obj as Order;
            if (other == null)
                return false;

            return this.Destination == other.Destination
                && this.Performer == other.Performer;
        }
    }

}
